Ext.define('Seq.app.MenuTabController', {
    extend: 'Seq.app.BaseController',

    onRefreshData(view, record, params, opts) {
        let tab = view.getActiveTab();
        tab.fireEvent('refreshdata', tab, record, params, opts);
    },

    onTabChange(tabPanel, newCard, oldCard, eOpts) {
        var record = this.getViewModel().get('record');
        newCard.fireEvent('refreshdata', newCard, record, null, {});
    }

});
